// (c) Drealmer - 2007/09/02

#pragma once
#pragma pack(push, 1)

struct BMPHeader {

	typedef short unsigned int BMP16;
	typedef long unsigned int BMP32;

	BMPHeader(int width, int height);

	BMP16 bfType;
	BMP32 bfSize;
	BMP16 bfReserved1;
	BMP16 bfReserved2;
	BMP32 bfOffBits;

	BMP32 biSize;
	BMP32 biWidth;
	BMP32 biHeight;
	BMP16 biPlanes;
	BMP16 biBitCount;
	BMP32 biCompression;
	BMP32 biSizeImage;
	BMP32 biXPelsPerMeter;
	BMP32 biYPelsPerMeter;
	BMP32 biClrUsed;
	BMP32 biClrImportant;
};

#pragma pack(pop)
